package pro;

/**
 * @Description: TODO
 * @author: muxiongxiong
 * @date: 2021年07月01日 10:43
 * 公众号：雄雄的小课堂
 * 博客：https://blog.csdn.net/qq_34137397
 */
public class Penguin {

    //静态常量
    public static final String MAN = "Q仔";
    public static final String WOMEN = "Q妹";

    public String name = "企鹅宝宝";
    public int health = 100;
    public int love = 0;
    public String sex = "Q仔";

    //无参的构造方法
    public Penguin() {

    }

    //带参的构造方法
    public Penguin(String name, int health, int love, String sex) {
        this.name = name;
        this.health = health;
        this.love = love;
        this.sex = sex;
    }

    public void show() {
        System.out.println("名字是：" + name);
        System.out.println("健康值是：" + health);
        System.out.println("亲密度是：" + love);
        System.out.println("性别是：" + sex);
    }
}
